package control;

import service.impl.AccountServiceImpl;
import service.AccountService;
import commons.JDKProxy;

/**
 * ClassName:Test
 * Package:control
 *
 * @date:2021/11/2 4:15 下午
 * @author: Tiangle
 */
public class Test {
    public static void main(String[] args) {
        AccountService proxy = new JDKProxy<AccountService>().getProxy(new AccountServiceImpl());
        String a1="tt";
        String a2="tiangle";
        System.out.println(proxy.transfer(a2,a1,200.0));
        System.out.println(proxy.selectA(a1));
        System.out.println(proxy.selectA(a2));
    }
}
